﻿using System.Windows;
using System.Windows.Input;

namespace RIBA
{
	public partial class Login
	{
		public Login()
		{
			InitializeComponent();
		}

		private void CancelButton_Click(object sender, RoutedEventArgs e)
		{
			DialogResult = false;
		}

		private void ChildWindow_KeyUp(object sender, KeyEventArgs e)
		{
			//http://dotnet-snippets.de/dns/default-button-in-silverlight-in-dialogen-festlegen-SID1400.aspx
			//http://webenliven-space.de/dotnetblog/post/2010/07/27/Das-MVVM-und-Events.aspx

			if (e.Key == Key.Enter)
				ButtonOk.Command.Execute(null);
		}
	}
}

